//
//  SEFilterHeaderMenuCell.swift
//  SmartEyeForPatient
//
//  Created by QDSG on 2021/4/19.
//

import UIKit

class SEFilterHeaderMenuCell: UITableViewCell {

    override func awakeFromNib() {
        super.awakeFromNib()
        backgroundColor = .white
        contentView.backgroundColor = .white
    }
    
    override func setSelected(_ selected: Bool, animated: Bool) {
        super.setSelected(selected, animated: animated)
        titleLabel.textColor = selected ? Asset.main.color : Asset.textDark.color
    }

    func update(with model: AddressModel, style: SEFilterHeaderMenuViewStyle) {
        switch style {
        case .default: break
        case .address:
            titleLabel.text = model.areaName
        }
    }
    
    @IBOutlet private weak var titleLabel: UILabel!
}
